<?php

namespace App\Http\Requests;


class ChannelGroupRequest extends BaseRequest
{
    public function rules()
    {
        return [
            'title' => 'required',
            'sort_type' => 'required',
            'items.*.channel_id' => 'required',
            'items.*.submit_nums' => 'required',
            'items.*.sort' => 'required',
        ];
    }

    public function messages()
    {
        return [
            'title.required' => '请输入名称',
            'sort_type.required' => '请选择排序类型',

            'items.*.channel_id.required' => '请选择渠道',
            'items.*.submit_nums.required' => '请输入重提次数',
            'items.*.sort.required' => '请输入排序',
        ];
    }
}
